
public class Display {
	int value = 0;
	int limit = 0;
	
	public Display(int limit) {

		this.limit = limit;
	}
	void increase(Display that) {
		that.value++;
		if (that.value >= that.limit) {
			that.value = 0;
		}
	}
	
	int getValue() {
		return value;
	}

}
